package cn.demo.configServer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

@SpringBootApplication(scanBasePackages = "cn.demo.configServer")
//@EnableEurekaClient
@EnableDiscoveryClient

@EnableConfigServer
public class Application {

    public static void main(String[] args) {
        // EurekaClient
        SpringApplication.run(Application.class, args);//.getEnvironment();
    }
}
